Completed
Push — master ( 1c23c6...f10b86 )
by Neil
02:06
created

index.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
cc 1
c 4
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
const BaseController = require('./base')
0 ignored issues
show
Unused Code introduced by
The constant BaseController seems to be never used. Consider removing it.
Loading history...
2
const Customer = require('../models/customer')
3
const Price = require('../models/price')
4
const MessageController = require('./message')
5
const AuthController = require('./auth')
6
7
module.exports.Customer = class CustomerController extends BaseController {
0 ignored issues
show
Bug introduced by
The variable BaseController seems to be never declared. If this is a global, consider adding a /** global: BaseController */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
8
  constructor () {
9
    super(Customer, '_id')
0 ignored issues
show
Bug introduced by
The variable Customer seems to be never declared. If this is a global, consider adding a /** global: Customer */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
10
  }
11
}
12
13
module.exports.Price = class PriceController extends BaseController {
0 ignored issues
show
Bug introduced by
The variable BaseController seems to be never declared. If this is a global, consider adding a /** global: BaseController */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
14
  constructor () {
15
    super(Price, '_id')
0 ignored issues
show
Bug introduced by
The variable Price seems to be never declared. If this is a global, consider adding a /** global: Price */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
16
  }
17
}
18
19
module.exports.Message = MessageController
20
module.exports.Auth = AuthController
21